package dk.jagtogjaeger;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.ImageButton;

public class TrackerDogActivity extends Activity {
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //Hides the title bar.
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        
        setContentView(R.layout.main);
        
        ImageButton b = (ImageButton) findViewById(R.id.sweissDogButton);
        b.setBackgroundDrawable(getResources().getDrawable(R.drawable.nybgtoogleimage));
	}
	public void menuButtonsClickHandler(View view) {
    	//Calls A Static method, instead of duplication this code 4 times through the activities.
		finish();
    	ButtonMenu.ButtenMenuClickHandler(view, this);
	}
	
	/*
	 * How to get all trackerdogs + location:
	 * 
	 * Make new Location listener.
	 * call controller - getLocation.
	 * In the listener onLocationChangedMethod call controller - getTrackerDogsWithDistance();
	 * the collection with tracker dogs returned now has a method called getDistanceToTargetLocationInKm
	 * which return the distance to the current location in KM.
	 * Make code for generating dynamic list with tracker dogs in onLocationChanged Method. 
	 * 
	 * There is a code example in CRUDJournalActivity about line: 120.
	 * GL & HF.
	 * And yes, i do know that the distance returned right now is not correct, but it doesnt matter for the GUI.
	 * Havent found out how to convert the X,y Cordinates into lat and lon.
	 * 
	 * Remember to Use controller now instead of DBFacade.
	 */
	
	
	

}
